//
//  DLQQShareConfig.m
//  DGGSharePayKit
//
//  Created by 伍明鹏 on 2020/4/13.
//

#import "DLQQShareConfig.h"

@implementation DLQQShareConfig

+ (void)configPlatform:(DLQQShareCustomPlatformType)platform
        appId:(NSString *)appId
    appSecret:(NSString *)appSecret
universalLink:(NSString *)universalLink
  andDelegate:(id)object{
    if (platform == DLQQShareCustomPlatformTypeQQSession){
        [self configQQWithAppId:appId appSecret:appSecret universalLink:universalLink andDelegate:object];
    }else{
        NSLog(@"-----非QQ平台----");
    }
}

+ (void)configQQWithAppId:(NSString *)appId appSecret:(NSString *)appSecret universalLink:(NSString *)universalLink andDelegate:(id)object{
    TencentOAuth *tencentOAuth = [[TencentOAuth alloc] initWithAppId:appId andUniversalLink:universalLink andDelegate:object];
    NSLog(@"QQ注册");
//    NSArray *_permissions = [NSArray arrayWithObjects:@"get_user_info",@"get_simple_userinfo", @"add_t", nil];
//    [tencentOAuth authorize:_permissions];
}

- (void)tencentDidLogin{}
-(void)tencentDidNotLogin:(BOOL)cancelled{}
-(void)tencentDidNotNetWork{}
@end
